package com.ruoyi.project.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 费用申请单信息对象 expense_app
 * 
 * @author ruoyi
 * @date 2025-04-04
 */
public class ExpenseApp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 费用申请单id */
    private Long appId;

    /** 费用申请单名称 */
    @Excel(name = "费用申请单名称")
    private String appName;

    /** 申请单号 */
    @Excel(name = "申请单号")
    private String appCode;

    /** 所属预算id */
    @Excel(name = "所属预算id")
    private Long budgetId;

    /** 预算对象 */
    @Excels({
            @Excel(name = "预算名称", targetAttr = "budgetName", type = Excel.Type.EXPORT)
    })
    private Budgets budget;

    /** 所属部门id */
    @Excel(name = "所属部门id")
    private Long deptId;

    /** 部门对象 */
    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept dept;

    /** 费用金额 */
    @Excel(name = "费用金额")
    private BigDecimal appAmount;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 费用状态 */
    @Excel(name = "费用状态")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }
    public void setAppCode(String appCode) 
    {
        this.appCode = appCode;
    }

    public String getAppCode() 
    {
        return appCode;
    }
    public void setBudgetId(Long budgetId) 
    {
        this.budgetId = budgetId;
    }

    public Long getBudgetId() 
    {
        return budgetId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setAppAmount(BigDecimal appAmount) 
    {
        this.appAmount = appAmount;
    }

    public BigDecimal getAppAmount() 
    {
        return appAmount;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    public SysDept getDept()
    {
        return dept;
    }

    public void setDept(SysDept dept)
    {
        this.dept = dept;
    }

    public Budgets getBudget()
    {
        return budget;
    }

    public void setBudget(Budgets budget)
    {
        this.budget = budget;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appId", getAppId())
            .append("appName", getAppName())
            .append("appCode", getAppCode())
            .append("budgetId", getBudgetId())
            .append("deptId", getDeptId())
            .append("appAmount", getAppAmount())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("status", getStatus())
            .append("notes", getNotes())
            .toString();
    }
}
